<include file="Public/header" />
<include file="Public/nav" />
<include file="Public/sec_nav" />
<style>
    .clear:after{
        content:"";
        height:0;
        clear:both;
        display:block;
    }
    .fixed{
        margin-left: -15px;
    }
</style>

<!-- 排序方式 -->
    <div class="row" style="padding-top:10px;padding-bottom:10px;text-align: center;">

        <div class="col-xs-6" style="padding-right: inherit">
            <div class="radio">
                <label>
                    <a href="{:U('List/index');}?goods_id={:I('param.goods_id')}" style="color: #000000">
                        <input type="radio" name="order_id" value="0" checked>
                            最热店家Top10
                    </a>
                </label>
            </div>
        </div>

        <div class="col-xs-6" style="padding-left: inherit;">
            <div class="radio">
                <label>
                    <a href="{:U('List/tag');}?goods_id={:I('param.goods_id')}" style="color: #000000">
                        <input type="radio" name="order_id" value="1">
                    最热标签Top10
                    </a>
                </label>
            </div>
        </div>
    </div>
<!-- 店铺展示 -->

<volist name="store" id="vo">
    <div   style="width:96%;margin:30px auto;background-color:white;padding-top:10px;border-radius:5px;box-shadow: 0 0 6px #ccc">

    <div class="clear" style="margin:2%">

        <div style="width:20%">
            <div  style="float:left;width:50px;height:50px;border-radius:100%;overflow: hidden">
                <img src="{$vo.show_pic}" style="width: 100%;" alt=""/>
            </div>
        </div>
        <div style="float:right;height:50px;width:78%">
            <p class="store_name" style="font-size: 22px;margin-bottom:4px;color:#333333">{$vo.store_name}</p>
            <p style="margin-top:10px;color:#666666" >商家类型：<span class="kind">{$vo['school_name']}</span></p>
        </div>
    </div>

    <div style="width:100%;margin-left:2%;overflow:hidden;margin-top:15px;">
        <div style="width:70%;float:left">
            <img style="width:20px;" src="__PUBLIC__/images/tag.png" alt=""/>
            <span style="color:#999999" class="tags"> <php>foreach($vo['tags'] as $v){echo $v['tag_name'].'  ';}</php></span>
        </div>
        <div style="width:30%;float:right">

            <span style="overflow:hidden">店主：<span class="buyer" ><a style="color:#479eff" href="{:U('Person/index')}?person_id={$vo.person_id}">{$vo.nickname}</a></span></span>

        </div>
    </div>
    <div class="shop_infro" style="width:100%;height:50px;background-color: white">
        <div style="width:100%;height:45px;background-color:#fbfbfb;border-top:1px solid #dddddd;padding-top:4px;margin-top:10px;float:right
                ">
            <div style="float:right">
                <i class="iconfont"  style="font-size: 24px">&#xe7c4;</i>
                <!--<img style="width:28px"  src="__PUBLIC__/images/view.png" alt=""/>-->
                <span style="margin-right: 15px;color:#999" class="view_count">{$vo.click_num}</span>
                <!--<img  style="width:24px;margin-left: 15px;" src="__PUBLIC__/images/comments.png" alt=""/>-->
                <i class="iconfont">&#xf003b;</i>
                <span style="margin-right: 15px;color:#999" class="comment_count">{$vo.comment_num}</span>

                <a href="{$vo.link}" style="display: inline-block"><button class="btn btn-warning">进入店铺</button></a>
            </div>
        </div>
    </div>
</div>
</volist>
<include file="Public/footer" />
<script>
    $('input').change(function(){
    console.log($(this).parent().attr('href'));
    var link = $(this).parent().attr('href');
    window.location.href=link;
})</script>